home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / elispman.lha / elispman / Makefile < prev    next >
Makefile  |  1993-06-01  |  3KB  |  118 lines

  1. # Makefile for the   GNU Emacs Lisp Reference Manual.
  2. #
  3. # 11 August 1990
  4.  
  5. # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
  6. # TEX=platex
  7.  
  8. TEX=tex
  9.  
  10. # Where the TeX macros are kept:
  11. texmacrodir = /usr/local/lib/tex/macros
  12.  
  13. # Where the Emacs hierarchy lives ($EMACS in the INSTALL document for Emacs.)
  14. # For example: 
  15. # emacslibdir = /usr/local/gnu/lib/emacs
  16.  
  17. # Directory where Emacs is installed, by default:
  18. emacslibdir = /usr/local/emacs
  19.  
  20. # Unless you have a nonstandard Emacs installation, these shouldn't have to 
  21. # be changed.
  22. prefix = /usr/local
  23. infodir = ${prefix}/info
  24.  
  25. # The name of the manual:
  26.  
  27. manual = elisp
  28.  
  29. # Uncomment this line for permuted index.
  30. # permuted_index = 1 
  31.  
  32. # List of all the texinfo files in the manual:
  33.  
  34. srcs = elisp.texi back.texi \
  35.   abbrevs.texi backups.texi locals.texi buffers.texi \
  36.   calendar.texi commands.texi compile.texi control.texi debugging.texi \
  37.   display.texi errors.texi eval.texi files.texi \
  38.   frames.texi functions.texi help.texi hooks.texi \
  39.   internals.texi intro.texi keymaps.texi lists.texi \
  40.   loading.texi macros.texi maps.texi markers.texi \
  41.   minibuf.texi modes.texi numbers.texi objects.texi \
  42.   os.texi positions.texi processes.texi searching.texi \
  43.   sequences.texi streams.texi strings.texi symbols.texi \
  44.   syntax.texi text.texi tips.texi variables.texi \
  45.   windows.texi \
  46.   index.unperm index.perm
  47.  
  48. .PHONY: elisp.dvi clean
  49.  
  50. elisp.dvi: $(srcs) index.texi texindex
  51.     # Avoid losing old contents of aux file entirely.
  52.     -mv elisp.aux elisp.oaux
  53.     # First shot to define xrefs:
  54.     $(TEX) elisp.texi
  55.     if [ a${permuted_index} != a ]; \
  56.     then \
  57.       ./permute-index; \
  58.       mv permuted.fns elisp.fns; \
  59.     else \
  60.       ./texindex elisp.??; \
  61.     fi
  62.     $(TEX) elisp.texi
  63.  
  64. index.texi:
  65.     if [ a${permuted_index} != a ]; \
  66.     then \
  67.       ln -s index.perm index.texi; \
  68.     else \
  69.       ln -s index.unperm index.texi; \
  70.     fi
  71.  
  72. # The info file is named `elisp'.
  73.  
  74. elisp: $(srcs) index.texi
  75.     ./makeinfo elisp.texi
  76.  
  77. install: elisp elisp.dvi
  78.     mv elisp elisp-* $(infodir)
  79.     @echo also add the line for elisp to $(infodir)/dir.
  80.  
  81. installall: install
  82.     install -c texinfo.tex $(texmacrodir)
  83.  
  84. clean:
  85.     rm -f $(manual).??? $(manual).?? make.out core 
  86.     rm -f makeinfo.o makeinfo getopt.o getopt1.o
  87.     rm -f texindex.o texindex index.texi
  88.  
  89. dist:
  90.     -mkdir temp
  91.     -mkdir temp/elisp
  92.     -ln README Makefile permute-index $(srcs) \
  93.    texinfo.tex getopt.c getopt1.c getopt.h \
  94.    elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] temp/elisp
  95.     -rm -f temp/elisp/texindex.c temp/elisp/makeinfo.c
  96.     cp texindex.c makeinfo.c temp/elisp
  97.     (cd temp/elisp; rm -f *~)
  98.     (cd temp; tar chf - elisp) | gzip > elisp.tar.z
  99.     -rm -rf temp
  100.  
  101. # Make two programs used in generating output from texinfo.
  102.  
  103. CFLAGS = -g
  104.  
  105. texindex: texindex.o
  106.     $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $?
  107. texindex.o: texindex.c
  108.  
  109. MAKEINFO_MAJOR = 1
  110. MAKEINFO_MINOR = 0
  111. MAKEINFO_FLAGS = -DMAKEINFO_MAJOR=$(MAKEINFO_MAJOR) -DMAKEINFO_MINOR=$(MAKEINFO_MINOR)
  112.  
  113. makeinfo: makeinfo.o getopt.o getopt1.o
  114.     $(CC) $(LDFLAGS) -o makeinfo makeinfo.o getopt.o getopt1.o
  115.  
  116. makeinfo.o: makeinfo.c
  117.     $(CC) -c $(CFLAGS) $(MAKEINFO_FLAGS) makeinfo.c
  118.